<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>支付失败payment_fail</title>
    <link rel="stylesheet" href="css/head_top_footer.css" />
    <link rel="stylesheet" href="css/payment_fail.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/hk库.js"></script>
	<script>
		$(function(){
			// 公共部分
			$('.header').load('head.html');
			$('.footer').load('footer.html');
		});
		
		window.onload = function(){
			// 获取参数
			$orderNo = GetQueryString('orderNo');
			if ($orderNo == undefined){
				alert('参数不完整!!!');
				window.location.href = 'index.html';
			}else{
				$('#goPay')[0].href = 'pay.html?orderNo='+$orderNo;
			}
		}		
		
		// 从地址栏获取参数
		function GetQueryString(name)
		{
		     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
		     var r = decodeURI(window.location.search.substr(1)).match(reg);
		     if(r!=null)return  unescape(r[2]); return null;
		}
	</script>
</head>
<body>
   <!--头部-->
   <div class="header"></div>
   
    <!--框-->
    <div class="pay_fail_bor">
        <div class="pay_fail_bor_pic">
            <img src="img/pay_all/fail.png" alt="">
        </div>

        <div class="pay_fail">
            <div>
                <span>您的订单支付失败！</span>
            </div>
            <div>
                <span>失败原因：您的账号余额不足！</span>
            </div>
            <div class="pay_fail_c">
                <a href="order.html">
                    <input type="button" value="查看订单">
                </a>
                <a href="pay.html" id="goPay">
                    <input type="button" value="继续支付">
                </a>
                <a href="index.html">继续购物>></a>
            </div>
        </div>

        <div class="pay_fail_code">
            <img src="img/qrcode.png" alt="">
        </div>

    </div>

	<!--底部-->
	<div class="footer"></div>
</body>
</html>